<?php

class Model_CurriculoDAO extends ORM{

	/***************
	   DATABASE   
	***************/
	protected $_table_name  = 'Curriculo';
	protected $_table_names_plural = FALSE;
	protected $_primary_key = 'idCurriculo';
	protected $_primary_val = 'informacoesComplementares';
	
	protected $_belongs_to = array('atividade' => array('model' => 'AtividadeDAO', 'foreign_key' => 'atividade_idAtividades'),
									'experienciaprofissional' => array('model' => 'ExperienciaProfissionalDAO', 'foreign_key' => 'experienciasProfissional_idExperienciaProfissional')
									);
	
	protected $_has_many = array('escolaridade' => array('model' => 'EscolaridadeDAO', 'foreign_key' => 'id_curriculo'), 
								'deficiencia' => array('model' => 'DeficienciaDAO', 'foreign_key' => 'id_curriculo'),
								'idioma' => array('model' => 'IdiomaDAO', 'foreign_key' => 'id_curriculo'),
								'informatica' => array('model' => 'InformaticaDAO', 'foreign_key' => 'id_curriculo'),
								'comunicacao' => array('model' => 'ComunicacaoDAO', 'foreign_key' => 'comunicacao_idCurriculo')
								);
								
								
	
	//protected $_belongs_to = array('Candidato' => array('model' => 'CandidatoDB', 'foreign_key' => 'curriculo_idCurriculo'));

}
?>